#ifndef __UWB_H
#define __UWB_H

#include "user_task.h"
#include "port.h" 
#include "stdio.h"
#include "stdlib.h"
#include "deca_regs.h"
#include "bsp_include.h"
#include "cmsis_os.h"
#include "bsp_callback.h"
#include "app_include.h"
  

void UWB_Init(void);
uint8_t UWB_StartRecive(uint16_t timeout);
uint16_t UWB_ReadRcvData(uint8_t *data);
uint8_t UWB_SendPack(uint8_t *buf,uint16_t length);
uint8_t UWB_SwitchChannel(uint8_t channel);
uint64_t UWB_GetRxTimestamp(void);
uint64_t UWB_GetTxTimestamp(void);
uint8_t UWB_SendAck(uint8_t ack_type,uint16_t src_addr,uint16_t dest_addr);
uint16_t UWB_GetRxFrameQuality(void);


uint8_t UWB_SendPollTx(uint16_t dest_addr,uint16_t dest_id);
uint8_t UWB_SendFinalTx(uint16_t dest_addr,uint16_t dest_id);
uint8_t UWB_ScanAnchor(uint16_t src_addr);
uint8_t UWB_GetValidAnchorCnt(void);




#endif


